package com.cf.base.sp;

import com.alibaba.fastjson.JSON;
import com.cf.base.sp.annotation.Delete;
import com.cf.base.sp.annotation.Get;
import com.cf.base.sp.annotation.Level;
import com.cf.base.sp.annotation.Put;
import com.cf.base.sp.annotation.SP;
import com.cf.base.sp.bean.BaseInfo;

import java.util.List;

@SP(value = "test", level = Level.Cache)
public interface StorageApi {

    @Get("/v1/user")
    void delUser(UserInfo info);

    @Put("users")
    void putUser(List<List<UserInfo>> user);

    @Get("users")
    List<List<UserInfo>> getUser();

    @Get("baseInfo")
    BaseInfo<List<UserInfo>, UserInfo> getBaseInfo();

    @Put("baseInfo")
    void putBaseInfo(BaseInfo<List<UserInfo>, UserInfo> base);
}
